home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / text / html / HTMLDocument$HTMLReader$PreAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.3 KB  |  29 lines

  1. package javax.swing.text.html;
  2.  
  3. import javax.swing.text.MutableAttributeSet;
  4. import javax.swing.text.html.CSS.Attribute;
  5. import javax.swing.text.html.HTML.Tag;
  6.  
  7. public class HTMLDocument$HTMLReader$PreAction extends HTMLDocument.HTMLReader.BlockAction {
  8.    // $FF: synthetic field
  9.    private final HTMLDocument.HTMLReader this$1;
  10.  
  11.    public HTMLDocument$HTMLReader$PreAction(HTMLDocument.HTMLReader var1) {
  12.       super(var1);
  13.       this.this$1 = var1;
  14.    }
  15.  
  16.    public void end(HTML.Tag var1) {
  17.       this.this$1.blockClose(Tag.IMPLIED);
  18.       this.this$1.inPre = false;
  19.       this.this$1.blockClose(var1);
  20.    }
  21.  
  22.    public void start(HTML.Tag var1, MutableAttributeSet var2) {
  23.       this.this$1.inPre = true;
  24.       this.this$1.blockOpen(var1, var2);
  25.       var2.addAttribute(Attribute.WHITE_SPACE, "pre");
  26.       this.this$1.blockOpen(Tag.IMPLIED, var2);
  27.    }
  28. }
  29.